<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
<?php
  error_reporting(0);//不显示报错
  $conn = mysqli_connect("localhost","root","1234","admin")or die("数据库连接失败");
  // 修改数据库连接字符集为 utf8
  mysqli_set_charset($conn,"utf8");
?>
</body>
</html>